<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <ul>
      <li>l0</li>
      <li>l1</li>
      <li>l2</li>
      <li>l3</li>
      <li>l4</li>
      <li>l5</li>
    </ul>
    <script>
      const ul = document.body.children[0];
      const li3 = ul.children[3];
      console.log(li3);
      console.log(li3.previousElementSibling);
      console.log(li3.nextElementSibling);
      console.log(li3.parentElement);
      console.log(li3.children);
    </script>
  </body>
</html>
